//
//  TagStrangeNumber.m
//  timelyRain
//
//  Created by Jiafei Wei on 16/10/10.
//  Copyright © 2016年 Jiafei Wei. All rights reserved.
//

#import "TagStrangeNumber.h"
#import "TagNumberCell.h"
#import "TagInfo.h"
@interface TagStrangeNumber ()
<UITableViewDataSource,UITableViewDelegate>
{
    NSMutableArray *dataArr;
}
@property (weak, nonatomic) IBOutlet UITableView *table;

@end

@implementation TagStrangeNumber

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBarHidden=YES;
    [super setTitleView:self.view withName:@"标记最近的陌生号码"];
    _table.delegate =self;
    _table.dataSource =self;
    dataArr =[NSMutableArray array];
    
    TagInfo *info =[[TagInfo alloc]init];
    info.time=@"上午12:00";
    info.phone=@"18927482671";
    info.tagType=@"黑名单";
    info.tagTypeNumber=@"11人被标记";
    info.local=@"广东深圳";
    [dataArr addObject:info];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return dataArr.count;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    TagNumberCell *cell =[TagNumberCell setTagNumberCellWithTableView:tableView];
    cell.info =dataArr[indexPath.row];//
    return cell;
}

@end
